'''
copy 复制一个全新的列表,互不影响
'''


good_list = ['花生', '瓜子', '火腿肠']
new_list = good_list.copy()
print(new_list)         # ['花生', '瓜子', '火腿肠']

good_list.append('啤酒')
print(good_list)        # ['花生', '瓜子', '火腿肠', '啤酒']
print(new_list)             # ['花生', '瓜子', '火腿肠']

print(id(good_list))    # 1833431010760
print(id(new_list))     # 1833431010952